package jpb.module.dao.profession.mapper;

import jpb.module.daomain.profession.Profession;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by haol on 2017/4/5.
 */
@Component
public interface ProfessionMapper {

        void add(@Param("profession") Profession profession);

        void delete(@Param("id") Integer id);


        void deleteByOid(@Param("oid") String oid);

        void update(@Param("profession") Profession profession);


        List<Profession> get(@Param("oid") String oid);

        Profession getById(@Param("id") Integer id);

        Profession getByOidAndName(@Param("oid") String oid, @Param("name") String name);

        Profession getByOidAndNum(@Param("oid") String oid, @Param("memberNum") String memberNum);




}
